package com.yq.cns.ui.main.detail

import android.content.Context
import android.content.Intent
import android.os.Bundle
import androidx.activity.compose.setContent
import androidx.appcompat.app.AppCompatActivity
import androidx.compose.foundation.layout.Column
import androidx.compose.material3.Text
import androidx.compose.runtime.Composable

class DetailActivity:AppCompatActivity() {

    companion object{
        fun start(context:Context){
            context.startActivity(Intent(context,DetailActivity::class.java))
        }
    }

    override fun onCreate(savedInstanceState: Bundle?) {
        super.onCreate(savedInstanceState)
        setContent{
            MessageCard("哈哈哈")
        }
    }

    @Composable
    fun MessageCard(name: String) {
        Column {
            Text(text = "Hello $name!")
            Text(text = "Hello $name!")
            Text(text = "Hello $name!")
        }
    }


}